#ifndef DATERANGE_H
#define DATERANGE_H
#include <QDate>
#include <QString>
#include <QDataStream>

using namespace std;

class DateRange
{
public:
    DateRange(const QString dName, const QDate sDate, const QDate eDate);
//    DateRange( QString dName,  QDate sDate,  QDate eDate);
    DateRange();
    QString getName() const;
    QDate getStartDate() const;
    QDate getEndDate() const;
    void setName(QString newName);
    void setStartDate(QDate newDate);
    void setEndDate(QDate newDate);
    void setDates(QDate newStartDate, QDate newEndDate);
    bool isInRangeOf(QDate date) const;
	
private:
    QString name;
    QDate startDate;
    QDate endDate;
};

	QDataStream &operator<<(QDataStream &out, const DateRange &data);
	QDataStream &operator>>(QDataStream &in, DateRange &data);
#endif // DATERANGE_H
